/**
 * 
 */
package es.ucm.is.www.test;
import es.ucm.is.www.state.*;
import es.ucm.is.www.city.*;
import es.ucm.is.www.persistence.*;
import es.ucm.is.www.units.*;

import java.util.ArrayList;
/**
 * @author alberto
 *
 */
public class PruebasUnidades {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Singleton.getInstance();
		ArrayList<Battalion> battalions,copia=new ArrayList<Battalion>();
		battalions=CityManager.getCreatedUnits("Carabanchel");
		for (Battalion b:battalions) {
			Battalion bu=new Battalion((UnitType)b.getUnits().clone(),b.getNumber());
			bu.setNumber(1);
			copia.add(bu);
			break;
		}
		battalions=null;
		try {
			StateManager.createMission("MatrixTown","Carabanchel","Barrio",UnitManager.TYPE_ATTACK,copia);
		} catch (Exception e) {e.printStackTrace();}
		
		/*try {
			StateManager.createUnits("MatrixTown", "Carabanchel", 2, 1);
		} catch (Exception e) {e.printStackTrace();} 
		try {
			StateManager.createUnits("MatrixTown", "Carabanchel", 4, 1);
		} catch (Exception e) {e.printStackTrace();} 
		try {
			StateManager.createUnits("MatrixTown", "Carabanchel", 6, 1);
		} catch (Exception e) {e.printStackTrace();} 
		try {
			StateManager.createUnits("Pucela", "valla3", 1, 1);
		} catch (Exception e) {e.printStackTrace();} 
		try {
			StateManager.createUnits("Pucela", "valla3", 5, 1);
		} catch (Exception e) {e.printStackTrace();}*/
	}

}
